import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity('cpgroup_farm_gb')
export class Farm {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ name: 'farm_code' })
  farmCode: string;

  @Column({ name: 'farm_name' })
  farmName: string;

  @Column({ name: 'farm_alias' })
  farmAlias: string;

  @Column({ name: 'region_code' })
  regionCode: string;

  @Column({ name: 'has_gb_id' })
  hasGbId: boolean;

  @Column()
  seq: number;

  @Column({ name: 'gb_id_start' })
  gbIdStart: string;

  @Column()
  province: string;

  @Column()
  city: string;

  @Column()
  distinct: string;

  @Column()
  industry: string;

  @Column({ name: 'encode_type' })
  encodeType: string;

  @Column({ name: 'network_identifier' })
  networkIdentifier: string;
}
